﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200069D RID: 1693
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetCurBattleInfoScRsp : IMessage<GetCurBattleInfoScRsp>, IMessage, IEquatable<GetCurBattleInfoScRsp>, IDeepCloneable<GetCurBattleInfoScRsp>, IBufferMessage
	{
		// Token: 0x170015D2 RID: 5586
		// (get) Token: 0x06004C58 RID: 19544 RVA: 0x000D109B File Offset: 0x000CF29B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetCurBattleInfoScRsp> Parser
		{
			get
			{
				return GetCurBattleInfoScRsp._parser;
			}
		}

		// Token: 0x170015D3 RID: 5587
		// (get) Token: 0x06004C59 RID: 19545 RVA: 0x000D10A2 File Offset: 0x000CF2A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetCurBattleInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170015D4 RID: 5588
		// (get) Token: 0x06004C5A RID: 19546 RVA: 0x000D10B4 File Offset: 0x000CF2B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetCurBattleInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004C5B RID: 19547 RVA: 0x000D10BB File Offset: 0x000CF2BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurBattleInfoScRsp()
		{
		}

		// Token: 0x06004C5C RID: 19548 RVA: 0x000D10C4 File Offset: 0x000CF2C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurBattleInfoScRsp(GetCurBattleInfoScRsp other) : this()
		{
			this.lastEventId_ = other.lastEventId_;
			this.lastEndStatus_ = other.lastEndStatus_;
			this.nKMIJCINEKP_ = ((other.nKMIJCINEKP_ != null) ? other.nKMIJCINEKP_.Clone() : null);
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004C5D RID: 19549 RVA: 0x000D1144 File Offset: 0x000CF344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurBattleInfoScRsp Clone()
		{
			return new GetCurBattleInfoScRsp(this);
		}

		// Token: 0x170015D5 RID: 5589
		// (get) Token: 0x06004C5E RID: 19550 RVA: 0x000D114C File Offset: 0x000CF34C
		// (set) Token: 0x06004C5F RID: 19551 RVA: 0x000D1154 File Offset: 0x000CF354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LastEventId
		{
			get
			{
				return this.lastEventId_;
			}
			set
			{
				this.lastEventId_ = value;
			}
		}

		// Token: 0x170015D6 RID: 5590
		// (get) Token: 0x06004C60 RID: 19552 RVA: 0x000D115D File Offset: 0x000CF35D
		// (set) Token: 0x06004C61 RID: 19553 RVA: 0x000D1165 File Offset: 0x000CF365
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleEndStatus LastEndStatus
		{
			get
			{
				return this.lastEndStatus_;
			}
			set
			{
				this.lastEndStatus_ = value;
			}
		}

		// Token: 0x170015D7 RID: 5591
		// (get) Token: 0x06004C62 RID: 19554 RVA: 0x000D116E File Offset: 0x000CF36E
		// (set) Token: 0x06004C63 RID: 19555 RVA: 0x000D1176 File Offset: 0x000CF376
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideBattleInfo NKMIJCINEKP
		{
			get
			{
				return this.nKMIJCINEKP_;
			}
			set
			{
				this.nKMIJCINEKP_ = value;
			}
		}

		// Token: 0x170015D8 RID: 5592
		// (get) Token: 0x06004C64 RID: 19556 RVA: 0x000D117F File Offset: 0x000CF37F
		// (set) Token: 0x06004C65 RID: 19557 RVA: 0x000D1187 File Offset: 0x000CF387
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x170015D9 RID: 5593
		// (get) Token: 0x06004C66 RID: 19558 RVA: 0x000D1190 File Offset: 0x000CF390
		// (set) Token: 0x06004C67 RID: 19559 RVA: 0x000D1198 File Offset: 0x000CF398
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06004C68 RID: 19560 RVA: 0x000D11A1 File Offset: 0x000CF3A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetCurBattleInfoScRsp);
		}

		// Token: 0x06004C69 RID: 19561 RVA: 0x000D11B0 File Offset: 0x000CF3B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetCurBattleInfoScRsp other)
		{
			return other != null && (other == this || (this.LastEventId == other.LastEventId && this.LastEndStatus == other.LastEndStatus && object.Equals(this.NKMIJCINEKP, other.NKMIJCINEKP) && object.Equals(this.BattleInfo, other.BattleInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004C6A RID: 19562 RVA: 0x000D1234 File Offset: 0x000CF434
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LastEventId != 0U)
			{
				num ^= this.LastEventId.GetHashCode();
			}
			if (this.LastEndStatus != BattleEndStatus.BattleEndNone)
			{
				num ^= this.LastEndStatus.GetHashCode();
			}
			if (this.nKMIJCINEKP_ != null)
			{
				num ^= this.NKMIJCINEKP.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004C6B RID: 19563 RVA: 0x000D12D7 File Offset: 0x000CF4D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004C6C RID: 19564 RVA: 0x000D12DF File Offset: 0x000CF4DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004C6D RID: 19565 RVA: 0x000D12E8 File Offset: 0x000CF4E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.LastEventId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.LastEventId);
			}
			if (this.nKMIJCINEKP_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.NKMIJCINEKP);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this.LastEndStatus != BattleEndStatus.BattleEndNone)
			{
				output.WriteRawTag(120);
				output.WriteEnum((int)this.LastEndStatus);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004C6E RID: 19566 RVA: 0x000D1398 File Offset: 0x000CF598
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LastEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LastEventId);
			}
			if (this.LastEndStatus != BattleEndStatus.BattleEndNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.LastEndStatus);
			}
			if (this.nKMIJCINEKP_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.NKMIJCINEKP);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004C6F RID: 19567 RVA: 0x000D1438 File Offset: 0x000CF638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetCurBattleInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LastEventId != 0U)
			{
				this.LastEventId = other.LastEventId;
			}
			if (other.LastEndStatus != BattleEndStatus.BattleEndNone)
			{
				this.LastEndStatus = other.LastEndStatus;
			}
			if (other.nKMIJCINEKP_ != null)
			{
				if (this.nKMIJCINEKP_ == null)
				{
					this.NKMIJCINEKP = new AetherDivideBattleInfo();
				}
				this.NKMIJCINEKP.MergeFrom(other.NKMIJCINEKP);
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004C70 RID: 19568 RVA: 0x000D14F4 File Offset: 0x000CF6F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004C71 RID: 19569 RVA: 0x000D1500 File Offset: 0x000CF700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 10U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
					if (num == 56U)
					{
						this.LastEventId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 82U)
					{
						if (this.nKMIJCINEKP_ == null)
						{
							this.NKMIJCINEKP = new AetherDivideBattleInfo();
						}
						input.ReadMessage(this.NKMIJCINEKP);
						continue;
					}
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.LastEndStatus = (BattleEndStatus)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001E2C RID: 7724
		private static readonly MessageParser<GetCurBattleInfoScRsp> _parser = new MessageParser<GetCurBattleInfoScRsp>(() => new GetCurBattleInfoScRsp());

		// Token: 0x04001E2D RID: 7725
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001E2E RID: 7726
		public const int LastEventIdFieldNumber = 7;

		// Token: 0x04001E2F RID: 7727
		private uint lastEventId_;

		// Token: 0x04001E30 RID: 7728
		public const int LastEndStatusFieldNumber = 15;

		// Token: 0x04001E31 RID: 7729
		private BattleEndStatus lastEndStatus_;

		// Token: 0x04001E32 RID: 7730
		public const int NKMIJCINEKPFieldNumber = 10;

		// Token: 0x04001E33 RID: 7731
		private AetherDivideBattleInfo nKMIJCINEKP_;

		// Token: 0x04001E34 RID: 7732
		public const int BattleInfoFieldNumber = 1;

		// Token: 0x04001E35 RID: 7733
		private SceneBattleInfo battleInfo_;

		// Token: 0x04001E36 RID: 7734
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04001E37 RID: 7735
		private uint retcode_;
	}
}
